const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  publicPath: process.env.NODE_ENV === "production" ? "/" : "/",

  devServer: {
    // host: "121.5.57.106",
    // // https:true,
    // port: 8080,
    // client: {
    //   webSocketURL: "ws://0.0.0.0:8080/ws",
    // },
    // headers: {
    //   "Access-Control-Allow-Origin": "*",
    // },
    proxy: {
      api: {
        target: "https://121.5.57.106:9090",
        changeOrigin: true,
        ws: true,
        pathRewrite: {
          "^/api": "",
        },
      },
    },
  },
  transpileDependencies: true,
  lintOnSave: false,
});
